package com.tianji.learning.controller;


import com.tianji.learning.domain.vo.PointsStatisticsVO;
import com.tianji.learning.service.IPointsRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 学习积分记录，每个月底清零 前端控制器
 * </p>
 *
 * @author WangXinyi
 * @since 2025-01-11
 */
@RestController
@RequestMapping("/points")
public class PointsRecordController {


    @Autowired
    private IPointsRecordService pointsRecordService;

    /**
     * 查询今日积分情况
     * @return
     */
    @GetMapping("/today")
    public List<PointsStatisticsVO> queryPointsStatisticsVO(){
        return pointsRecordService.queryPointsStatisticsVO();
    }
}
